package cn.neusoft.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.lang.reflect.Field;
import java.util.Date;
@AllArgsConstructor
@Data
@ToString
@NoArgsConstructor
public class Emp {
	private Integer empno;
	private String ename;
	private Integer age;
	@DateTimeFormat(pattern ="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date hiredate;

	private Integer sal;
}
